﻿namespace Assets.XyzCode.Fight.Game.Enemy
{
    partial class Enemy_X_Behav
    {
		/// <summary>
        /// 停止跑动
        /// </summary>
		private void StopRun()
        {
            if (null == _navMeshAgent 
             || !_navMeshAgent.enabled)
            {
                return;
            }

            _navMeshAgent.ResetPath();
            _navMeshAgent.isStopped = true;
            _navMeshAgent.enabled = false;
        }
    }
}
